<div class="usergroups index">
<h2><?php __('Usergroups');?></h2>
<p>
<?php
echo $paginator->counter(array(
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
));
?></p>
<table cellpadding="0" cellspacing="0" class="widefat fixed">
<thead>
<tr>
	<th width="50px"><?php echo $paginator->sort('id');?></th>
	<th><?php echo $paginator->sort('name');?></th>
	<th class="actions"><?php __('Actions');?></th>
</tr>
</thead>
<?php
$i = 0;
foreach ($usergroups as $usergroup):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $usergroup['Usergroup']['id']; ?>
		</td>
		<td>
			<?php echo $usergroup['Usergroup']['name']; ?>
		</td>
		<td class="actions">
			<?php echo $html->link($html->image('view.png'), array('action' => 'view', $usergroup['Usergroup']['id']), array('title'=>'See the complete data'),false,false); ?>
			<?php echo $html->link($html->image('update.png'), array('action' => 'edit', $usergroup['Usergroup']['id']), array('title'=>'Update data'),false,false); ?>
			<?php echo $html->link($html->image('delete.png'), array('action' => 'delete', $usergroup['Usergroup']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $usergroup['Usergroup']['id']),false,false); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true), array('tag'=>'span'), null, array('tag'=>'span','class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>', array('tag'=>'span'), null, array('tag'=>'span','class' => 'disabled'));?>
</div>
<div class="actions">
	<div id="favorite-actions2"><?php echo $html->link(__('New Usergroup', true), array('action' => 'add')); ?></div>
	 <div id="favorite-actions2"><?php echo $html->link(__('List Modules', true), array('controller' => 'modules', 'action' => 'index')); ?> </div>
		<div id="favorite-actions2"><?php echo $html->link(__('New Module', true), array('controller' => 'modules', 'action' => 'add')); ?> </div>
	</ul>
</div>
